
package com.sise.controller;

import com.sise.itree.common.BaseController;
import com.sise.itree.common.annotation.ControllerMapping;
import com.sise.itree.core.handle.response.BaseResponse;
import com.sise.itree.model.ControllerRequest;

/**
 * @author linhao
 * @date 2019/4/26
 * @Version V1.0
 */
@ControllerMapping(url = "/test")
public class TestController implements BaseController {

    @Override
    public BaseResponse doGet(ControllerRequest controllerRequest) {
        return new BaseResponse(1, "get");
    }

    @Override
    public BaseResponse doPost(ControllerRequest controllerRequest) {
        return new BaseResponse(1, "post");
    }
}
